#include <stdio.h>

int main(int argc, char *argv[]) {

    int a,one,ten,hun;
    scanf("%d", &a);

    one = a % 10 ;
    ten = a /10 % 10 ;
    hun = a / 100 % 10;

    printf("%d %d %d\n", one, ten, hun);

    return 0;
}